package object;

public class IntegerDemo {
    public static void main(String[] args) {
        String s1 = "39";
        int a = Integer.parseInt(s1);
        System.out.println(a);

        String s2 = "123.12";
        double b = Double.parseDouble(s2);
        System.out.println(b);


       /* Integer i = 5;//基本类型装箱
        int j = i;//包装类拆箱
        double max = Double.MAX_VALUE;
        System.out.println(max);
        int max1 = Integer.MAX_VALUE;
        System.out.println(max1);*/

       /*
        Integer i1 = new Integer(500);
        Integer i2 = new Integer(500);
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));
        Integer i3 = Integer.valueOf(5);
        Integer i4 = Integer.valueOf(5);
        System.out.println(i3==14);
        System.out.println(i3.equals(i4));

        int i = i4.intValue();
        System.out.println(i);
*/
    }
}
